import request from '@/utils/request'
export function getLogs() {
    return request({
        method: 'get',
        maxBodyLength: Infinity,
        url: '/Student/getLogs',
        headers: {
            'Content-Type': 'application/json'
        },
    })
}

export function deleteLog(logId) {
    return request({
        method: 'post',
        maxBodyLength: Infinity,
        url: '/Student/deleteLog?logId=' + logId,
        headers: {
            'Content-Type': 'application/json'
        },
        data: logId
    })
}

export function deleteBatchLog(ids) {
    return request({
        method: 'post',
        maxBodyLength: Infinity,
        url: '/Student/deleteBatchLog',
        headers: {
            'Content-Type': 'application/json'
        },
        data: ids
    })
}

//更新学生信息
export function updateLog(obj) {
    return request({
        method: 'post',
        maxBodyLength: Infinity,
        url: '/Student/updateLog',
        headers: {
            'Content-Type': 'application/json'
        },
        data: obj
    })
}
//为加载更新日志信息做准备
export function findLogById(logId) {
    return request({
        method: 'get',
        maxBodyLength: Infinity,
        url: '/Student/findLogById?logId=' + logId,
        headers: {
            'Content-Type': 'application/json'
        },
        data: logId
    })
}

//模糊查询
export function findLogmh(log) {
    return request({
        method: 'post',
        maxBodyLength: Infinity,
        url: '/Student/findLogmh',
        headers: {
            'Content-Type': 'application/json'
        },
        data: log
    })
}